<?php
namespace Transform;

class PostTransform extends Transform
{
    public function index($arguments)
    {
        return [
            'allows' => ['post_id',
                'details', 'pic', 'views', 'reply_num', 'zan_num', 'create_time', 'author'
                    , 'video', 'cover_url', 'type', 'human_time', 'is_zan', 'is_fine', 'is_rewarded', 'is_favorite', 'tag'],
            'author' => [
                'user_id','nickname','face','sex'
            ],
            'tag' => [
                'trans' => ['name' => 'PostTag', 'method' => 'listview'],
            ]
        ];
    }


}
